A teenage suicide bomber targeted security personnel in a crowded market in the restive Bajaur tribal region of northwest Pakistan on Friday, killing 17 people and injuring 42 others, officials said.